from tasks.base_model import Base_model

class BaseScoringModel(Base_model):
    @classmethod
    def get_default_hyper_parameters(cls):
        raise NotImplementedError

    def compile_model(self,**kwargs):
        if kwargs.get("loss") is None:
            kwargs['loss'] = 'mse'

        if kwargs.get("optimizer") is None:
            kwargs['optimizer'] = 'rmsprop'

        if kwargs.get("metrics") is None:
            kwargs['metrics'] = ['mae']
        super(BaseScoringModel,self).compile_model(**kwargs)